<?php if (!defined("MAIN_DIR")) die("<h1>Access denied</h1>");

$headers = apache_request_headers();
if (!isset($headers['X-Requested-With']) || $headers['X-Requested-With'] != "XMLHttpRequest")
	die("<h1>No direct access</h1>");

switch ($this->getPath(2))
{
	case "loadProjectInfo": require_once AJAX.DS."loadprojectinfo.php"; break;
	
	default: header("Location: /");
}

?>